#!/usr/bin/env phython
# -*- coding: utf-8 -*-

import random
import sys
#teste a tabela
def criar_tabela():
    T = [0 for x in range(0, 1000)]
    cont = 0
    t_contar = [0 for x in range(0, 10)]
    while cont < 1000:
        x = random.randint(0, 9)
        if t_contar[x]>99:
            continue
        t_contar[x]+=1
        T[cont]=x
        cont += 1
        pass
    return T
pass

def conta(T):
    t_contar = [0 for x in range(0, 10)]
    for x in T:
        t_contar[x] += 1
        pass
    for x in t_contar:
        print x
        pass
    pass
       
